﻿using Vk.Methods.Common;

namespace Vk.Methods.Market
{
    /// <summary>
    /// Категория товара
    /// </summary>
    public class MarketCategory : IdTitleObject
    {
        public MarketCategory(ApiNode node) : base(node, titleNodeName: "name")
        {
            Section = node.Object("section", apiNode => new IdTitleObject(apiNode, titleNodeName: "name"));
        }

        /// <summary>
        /// Секция
        /// </summary>
        public IdTitleObject Section { get; set; }
    }
}